<style>
    .appraise-content{float:left;width:430px}
    .pr-info-area .product-name a:hover, .pr-button .mt-button a:hover {
        color: #F47E1E
    }
    .pr-img-area {
        border-bottom: 1px solid #f5f5f5
    }
    .pr-img-area img {
        width: 100%
    }
    .product-item .item-inner .item-info {
        text-align: center;
        padding-top: 12px;
    }
    .product-item .item-inner .item-info .item-title {
        font-size: 14px;
        margin-bottom: 6px;
        font-weight: 400;
    }
    @media (max-width:479px) {
        .product-item .item-inner .item-info .item-title {
            font-size: 14px;
            padding: 0px 10px
        }
    }
    .product-item .item-inner .item-info .item-title a {
        display: inherit;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 0 10px;
        font-size: 15px;
        font-weight: 700;
        text-transform: none;
    }
    .product-item .item-inner {
        position: relative;
        overflow: hidden
    }
    .product-item {
        margin: 0 12px
    }
    .product-item .item-inner .item-info .item-title a:hover {
        color: #69bd43;
    }
    .price {
        font-size: 14px;
        color: #fe0100;
        white-space: nowrap !important;
    }
    .price-box {
        margin: 8px 0 2px
    }
    .regular-price {
        display: inline
    }
    .regular-price .price {
        font-weight: 900;
        font-size: 16px;
        color: #69bd43
    }

</style>

<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input id="c-shop_id"  name="row[shop_id]" type="hidden" value="{$row.shop_id}">
    <input id="c-order_id" name="row[order_id]" type="hidden" value="{$row.order_id}">
    <input id="c-ordergoods_id" name="row[ordergoods_id]" type="hidden" value="{$row.ordergoods_id}">
    <input id="c-goods_id" name="row[goods_id]" type="hidden" value="{$row.goods_id}">
    <input id="c-goodsspec_id" name="row[goodsspec_id]" type="hidden" value="{$row.goodsspec_id}">
    <input id="c-user_id" name="row[user_id]" type="hidden" value="{$row.user_id}">

    <div class="row">
        <div class="col-md-3 col-sm-3">
            <div class="product-item">
                <div class="item-inner">
                    <div class="product-thumbnail">
                        <div class="pr-img-area">
                            <a title="{$row['goodsname']}" href="{:addon_url('mall/goods/detail','ids='.$row['id'])}">
                                <figure>
                                    <img class="first-img" src="__MALLCDN__{$row['goodsimg']}" alt="">
                                </figure>
                            </a>
                        </div>
                    </div>
                    <div class="item-info">
                        <div class="info-inner">
                            <div class="item-title"> <a title="{$row['goodsname']}" href="{:addon_url('mall/goods/detail','ids='.$row['goods_id'])}">{if $row['goodsCode']=='gift'}【赠品】{/if}{$row['goodsname']} </a> </div>
                            <div class="item-content">
                                <div class="rating">
                                    <div title="{$row['goodsSpecNames']}">{$row['goodsSpecNames']}</div>
                                </div>
                                <div class="item-price">
                                    <div class="price-box"> <span class="regular-price"> <span class="price">￥{$row['goodsPrice']}</span> </span> </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
        <div class="col-md-9 col-sm-9">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Goodsscore')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-goodsraty" data-rule="required" class="form-control raty" name="row[goodsraty]" type="hidden" value="{$row.goodsraty}">
                    <div class="appraise-content">
                        {if($row['goodsraty']==0)}
                        <div class="goodsraty" id="goodsraty" style='float:left'></div>
                        <div id="goodsraty_hint" style='float:left'></div>
                        {else/}
                        {for start="1" end="6"}
                        {if($i<=$row['goodsraty'])}
                        <img src="__CDN__/assets/addons/mall/__STYLE__/images/star-on-big.png">
                        {else/}
                        <img src="__CDN__/assets/addons/mall/__STYLE__/images/star-off-big.png">
                        {/if}
                        {/for}
                        {/if}
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Servicescore')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-serviceraty" data-rule="required" class="form-control raty" name="row[serviceraty]" type="hidden" value="{$row.serviceraty}">
                    <div class="appraise-content">
                        {if($row['serviceraty']==0)}
                        <div class="serviceraty" id="serviceraty" style='float:left'></div>
                        <div id="serviceraty_hint" style='float:left'></div>
                        {else/}
                        {for start="1" end="6"}
                        {if($i<=$row['serviceraty'])}
                        <img src="__CDN__/assets/addons/mall/__STYLE__/images/star-on-big.png">
                        {else/}
                        <img src="__CDN__/assets/addons/mall/__STYLE__/images/star-off-big.png">
                        {/if}
                        {/for}
                        {/if}
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Timescore')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-timeraty" data-rule="required" class="form-control raty" name="row[timeraty]" type="hidden" value="{$row.timeraty}">
                    <div class="appraise-content">
                        {if($row['timeraty']==0)}
                        <div class="timeraty" id="timeraty" style='float:left'></div>
                        <div id="timeraty_hint"  style='float:left'></div>
                        {else/}
                        {for start="1" end="6"}
                        {if($i<=$row['timeraty'])}
                        <img src="__CDN__/assets/addons/mall/__STYLE__/images/star-on-big.png">
                        {else/}
                        <img src="__CDN__/assets/addons/mall/__STYLE__/images/star-off-big.png">
                        {/if}
                        {/for}
                        {/if}
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <textarea id="c-content" data-rule="required" class="form-control" rows="3" name="row[content]" cols="50">{$row.content}</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Receivimg')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <div class="input-group">
                        <input id="c-receivimg" class="form-control" size="50" name="row[receivimg]" type="text" value="{$row.receivimg}">
                        <div class="input-group-addon no-border no-padding">
                            <span><button type="button" id="plupload-receivimg" class="btn btn-danger plupload" data-input-id="c-receivimg" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-receivimg"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                            <span><button type="button" id="fachoose-receivimg" class="btn btn-primary fachoose" data-input-id="c-receivimg" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                        </div>
                        <span class="msg-box n-right" for="c-receivimg"></span>
                    </div>
                    <ul class="row list-inline plupload-preview" id="p-receivimg"></ul>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Showis')}:</label>
                <div class="col-xs-12 col-sm-8">

                    <input  id="c-showis" name="row[showis]" type="hidden" value="{$row.showis}">
                    <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-showis" data-yes="1" data-no="0" >
                        <i class="fa fa-toggle-on text-success {eq name="$row.showis" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
                    </a>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
